%% Read files
mlp     = xlsread('MLP_trainingLog.xlsx');
gcn     = xlsread('GCN_trainingLog.xlsx');
sage    = xlsread('GraphSAGE_trainingLog.xlsx');
gat     = xlsread('GAT_trainingLog.xlsx');
%% Plot Loss
figure1  = figure;
axes1    = axes('Parent',figure1);
hold(axes1,'on');

plot1 = plot(mlp(:,2),'-.','LineWidth',2,'Color','#0072BD');
plot2 = plot(gcn(:,2),'-.','LineWidth',2,'Color','#D95319');
plot3 = plot(sage(:,2),'-.','LineWidth',2,'Color','#7E2F8E');
plot4 = plot(gat(:,2),'-.','LineWidth',2,'Color','#77AC30');


set(plot1,'DisplayName','MLP');
set(plot2,'DisplayName','GCN');
set(plot3,'DisplayName','GraphSAGE');
set(plot4,'DisplayName','GAT');

ylabel({'Loss'});
xlabel({'Epoch'});

xlim(axes1,[0 200]);
ylim(axes1,[0 0.8]);

hold(axes1,'off');
legend1 = legend(axes1,'show');
%% Plot Auc
figure2  = figure;
axes2    = axes('Parent',figure2);
hold(axes2,'on');

plot1 = plot(mlp(:,3),'-.','LineWidth',2,'Color','#0072BD');
plot2 = plot(gcn(:,3),'-.','LineWidth',2,'Color','#D95319');
plot3 = plot(sage(:,3),'-.','LineWidth',2,'Color','#7E2F8E');
plot4 = plot(gat(:,3),'-.','LineWidth',2,'Color','#77AC30');
plot5 = plot(mlp(:,4),'-','LineWidth',2,'Color','#0072BD');
plot6 = plot(gcn(:,4),'-','LineWidth',2,'Color','#D95319');
plot7 = plot(sage(:,4),'-','LineWidth',2,'Color','#7E2F8E');
plot8 = plot(gat(:,4),'-','LineWidth',2,'Color','#77AC30');

set(plot1,'DisplayName','MLP:Train-AUC');
set(plot2,'DisplayName','GCN:Train-AUC');
set(plot3,'DisplayName','GraphSAGE:Train-AUC');
set(plot4,'DisplayName','GAT:Train-AUC');
set(plot5,'DisplayName','MLP:Valid-AUC');
set(plot6,'DisplayName','GCN:Valid-AUC');
set(plot7,'DisplayName','GraphSAGE:Valid-AUC');
set(plot8,'DisplayName','GAT:Valid-AUC');

ylabel({'AUC'});
xlabel({'Epoch'});

xlim(axes2,[0 200]);
ylim(axes2,[0.5 0.8]);

hold(axes2,'off');
legend2 = legend(axes2,'show');